package cc.vicp.djx314.starfood.domain.dish;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 菜式信息持久化类
 * @author 水山清风
 *
 */
public class Dish implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7461196826809497082L;
	//~属性=====================================================================
	/**
	 * 自增主键
	 */
	private Integer id;
	/**
	 * 菜式名字
	 */
	private String name;
	/**
	 * 菜式价格
	 */
	private Double price;
	/**
	 * 菜式折扣，没有折扣的时候为10.0
	 */
	private Double discount;
	/**
	 * 菜式折后价
	 */
	private Double priceDiscounted;
	/**
	 * 菜式简介
	 */
	private String intro;
	/**
	 * 喜欢该菜式的人数
	 */
	private Integer likeCount;
	/**
	 * 该菜式的详细描述
	 */
	private String desc;
	/**
	 * 某一段时间的统计总和
	 */
	private int sum;
	/**
	 * 统计时间
	 */
	private Date countDate;
	/**
	 * 菜式所在的活动
	 */
	private Activity activity;
	/**
	 * 菜式的提供时间
	 */
	private List<ProvideTime> provideTimes = new ArrayList<ProvideTime>();
	/**
	 * 把一个菜式的相同提供时间的日期连续显示成字符串
	 */
	private List<SeriesDishProvideTime> seriesDishProvideTimes = new
			ArrayList<SeriesDishProvideTime>();

	/**
	 * 默认构造函数
	 */
	public Dish() {
	}

	//~getter和setter=====================================================================
	/**
	 * 获得id
	 * @return
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置id
	 * @param id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获得name
	 * @return
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置name
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获得price
	 * @return
	 */
	public Double getPrice() {
		return price;
	}
	/**
	 * 设置price
	 * @param price
	 */
	public void setPrice(Double price) {
		this.price = price;
	}
	/**
	 * 获得discount
	 * @return
	 */
	public Double getDiscount() {
		return discount;
	}
	/**
	 * 设置discount
	 * @param discount
	 */
	public void setDiscount(Double discount) {
		this.discount = discount;
	}
	/**
	 * 获得priceDiscounted
	 * @return
	 */
	public Double getPriceDiscounted() {
		return priceDiscounted;
	}
	/**
	 * 设置priceDiscounted
	 * @param priceDiscounted
	 */
	public void setPriceDiscounted(Double priceDiscounted) {
		this.priceDiscounted = priceDiscounted;
	}
	/**
	 * 获得intro
	 * @return
	 */
	public String getIntro() {
		return intro;
	}
	/**
	 * 设置intro
	 * @param intro
	 */
	public void setIntro(String intro) {
		this.intro = intro;
	}
	public Integer getLikeCount() {
		return likeCount;
	}
	public void setLikeCount(Integer likeCount) {
		this.likeCount = likeCount;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public int getSum() {
		return sum;
	}
	public void setSum(int sum) {
		this.sum = sum;
	}
	/**
	 * 获得activity
	 * @return
	 */
	public Activity getActivity() {
		return activity;
	}
	/**
	 * 设置activity
	 * @param activity
	 */
	public void setActivity(Activity activity) {
		this.activity = activity;
	}
	/**
	 * 获得provideTimes
	 * @return
	 */
	public List<ProvideTime> getProvideTimes() {
		return provideTimes;
	}
	/**
	 * 设置provideTimes
	 * @param provideTimes
	 */
	public void setProvideTimes(List<ProvideTime> provideTimes) {
		this.provideTimes = provideTimes;
	}
	/**
	 * 获得seriesDishProvideTimes
	 * @return
	 */
	public List<SeriesDishProvideTime> getSeriesDishProvideTimes() {
		return seriesDishProvideTimes;
	}
	/**
	 * 设置seriesDishProvideTimes
	 * @param seriesDishProvideTimes
	 */
	public void setSeriesDishProvideTimes(
			List<SeriesDishProvideTime> seriesDishProvideTimes) {
		this.seriesDishProvideTimes = seriesDishProvideTimes;
	}
}
